package cn.tedu.zx.court.adapter.mapper;


import cn.tedu.zx.pojo.court.entity.Court;
import cn.tedu.zx.pojo.court.vo.CourtDetailsVo;
import cn.tedu.zx.pojo.court.vo.CourtGroupListVo;
import cn.tedu.zx.pojo.court.vo.CourtListVo;
import cn.tedu.zx.pojo.court.vo.CourtUserWatchListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
/*继承BaseMapper后可以通过注解使用baseMapper中准备好的增删改查方法*/
public interface CourtMapper extends BaseMapper<Court> {
    List<CourtListVo> listAlbum();

    CourtDetailsVo selectDetailsById(Long Id);

    List<CourtListVo> list();

    List<CourtGroupListVo> listByCategoryId(Long categoryId);

    List<CourtUserWatchListVo> UserWatchList();
}
